﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Snipr.AppLogic;

namespace Snipr.Framework.Security
{
    public class UserAccount
    {
        public UserAccount(string userName)
        {
            User = new AppUser(userName);
        }
        AppUser User { get; set; }
        public bool UserExists(string userName = null)
        {
            User = User ?? new AppUser(userName);
            return (User.UserID == -1) ? false : true;
        }
        public void Login()
        {

        }
    }
}
